﻿using System;
using System.Linq;

namespace LINQPad.OpenAccess.UI.Events
{
    /// <summary>
    /// ClosedView - Requested - EventArgs
    /// </summary>
    public class CloseViewRequestedEventArgs : EventArgs
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="CloseViewRequestedEventArgs" /> class.
        /// </summary>
        /// <param name="confirmed">The confirmed.</param>
        public CloseViewRequestedEventArgs( bool? confirmed )
        {
            this.Confirmed = confirmed;
        }

        /// <summary>
        /// Gets a value indicating whether the user explicitly confirmed the close request.
        /// </summary>
        /// <value>
        /// <c>true</c> if confirmed; otherwise, <c>false</c>, e.g. on cancel.
        /// </value>
        public bool? Confirmed { get; private set; }

    }
}
